//
//  ScoreLayer.h
//  SCRAP_ObjC
//
//  Created by Capstone Design Fall 2010 on 11/7/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Player.h"

@interface ScoreLayer : CCColorLayer {
	
	NSMutableArray *playerList;
	NSMutableArray *scores;
	Player *winner;
	int numberOfRounds;
	int currentRound;
	
	CGSize size;
	CGPoint center;
	
	CCMenu *menu;
	CCLabel *winnerLabel;
	CCLabel *winnerScoreLabel;
	CCLabel *winnerTotalLabel;
	bool sizingUp;
	
	NSString *buttonString;
}

@property (retain) NSString *buttonString;
@property (retain) CCLabel *winnerLabel;
@property (retain) CCLabel *winnerScoreLabel;
@property (retain) CCLabel *winnerTotalLabel;
@property bool sizingUp;
@property (retain) Player *winner;

@property (retain) NSMutableArray *playerList;
@property (retain) NSMutableArray *scores;
@property int numberOfRounds;
@property int currentRound;
@property CGSize size;
@property CGPoint center;
@property (retain) CCMenu *menu;

//static function might be easier to call
+(id) layerWithPlayers:(NSMutableArray *)players;
+(id) layerWithPlayers:(NSMutableArray *)players withWinner:(Player*)p;

//setter methods
-(void) setPlayers:(NSMutableArray*)players;

//build the table at end of each round
-(void) setUpScoreTable:(int) rounds;

//table for whole game
//input is how many rounds, 0 for all (default)
-(void) setUpSpanOfRoundsScoreTable:(int) rounds;

//table for one round
-(void) setUpEndOfRoundScoreTable;
-(void) setUpEndOfGameScoreTable;

-(void) continueButtonHit;

//menus....
-(void) setUpMenu;

@end
